import request from "@/utils/request";
export function fetchList(params) {
  return request({
    url: "/qsg/room/list",
    method: "get",
    params: params,
  });
}

export function createRoom(data) {
  return request({
    url: "/qsg/room/create",
    method: "post",
    data: data,
  });
}

export function deleteRoom(id) {
  return request({
    url: "/qsg/room/delete/" + id,
    method: "get",
  });
}

export function getRoom(id) {
  return request({
    url: "/qsg/room/" + id,
    method: "get",
  });
}

export function updateRoom(id, data) {
  return request({
    url: "/qsg/room/update/" + id,
    method: "post",
    data: data,
  });
}
